/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除展品 根据ID删除展品信息 POST /scenic/exhibitionItem/delete */
export async function scenicExhibitionItemOpenApiDeleteUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicExhibitionItemOpenApiDeleteUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/exhibitionItem/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 展品详情 根据ID查询展品详细信息 POST /scenic/exhibitionItem/get */
export async function scenicExhibitionItemGetUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicExhibitionItemGetUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingExhibitionItemVoduixiang>(
    '/scenic/exhibitionItem/get',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询展品 支持按条件分页查询 POST /scenic/exhibitionItem/page */
export async function scenicExhibitionItemPageUsingPost({
  body,
  options,
}: {
  body: API.ExhibitionItemBo0b7e85f2Ae974a37A1ed4b5f8d3a16d5;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoExhibitionItemVoduixiang>(
    '/scenic/exhibitionItem/page',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 新增或修改展品 如需修改则传递id POST /scenic/exhibitionItem/save */
export async function scenicExhibitionItemSaveUsingPost({
  body,
  options,
}: {
  body: API.ExhibitionItemBof2bef5e9518849a0A45dE179cfe00196;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingExhibitionItemVoduixiang>(
    '/scenic/exhibitionItem/save',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
